core: Use gs_stream_fstat()
authorColin Walters <walters@verbum.org>
Thu, 15 Aug 2013 18:21:26 +0000 (14:21 -0400)
committerColin Walters <walters@verbum.org>
Thu, 15 Aug 2013 18:21:26 +0000 (14:21 -0400)
Just a cleanup.

src/libostree/ostree-core.c

index 517675382efedb9a577659338ee393f78e827cda..59779b1c9c3810c61dd04aa840b8fb4e3fa45c15 100644 (file)
@@ -714,11 +714,8 @@ ostree_content_file_parse (gboolean                compressed,
       if (!file_input)
         goto out;
       
-      if (fstat (g_file_descriptor_based_get_fd ((GFileDescriptorBased*)file_input), &stbuf) < 0)
-        {
-          ot_util_set_error_from_errno (error, errno);
-          goto out;
-        }
+      if (!gs_stream_fstat ((GFileDescriptorBased*)file_input, &stbuf, cancellable, error))
+        goto out;
 
       length = stbuf.st_size;
     }